<?php
	//echo $form->label(null, 'Huyện');
	//echo $form->select('Canbo.huyen_id', $options, null, array('id'=>'huyens'), false);
	
	//$tmp = $form->label(null, 'Huyện'). $form->select('Canbo.huyen_id', $options, null, true);
	//echo $html->div('input text', $tmp, array('id'=>'huyens'), false);
//	
echo '<table >';
	if(!empty($options)){
		echo '<b>';
		echo '<tr><th>'.$form->label(null, 'Các đơn vị trực thuộc').'</th></tr>';
		echo '</b>';
	//	echo '<br>';
        $i=0;
        foreach($options as $key=>$value){
                if($i%2==0)
                    echo '<tr>';
                echo '<td style="padding-right:20px"><input type="checkbox" 
                            name="data[Zranknv][donvi_con][]" 
                            value="'.$key.'" id="'.$key.'" /> 
                            '.$value.'</td>';
                if($i%2==1)
                    echo '</tr>';
                
                $i++;
        }
	//	echo $form->select('ThuocH.huyen_id', $options, null, array('id'=>'huyens'), false);
	}else{
		//echo $form->select('ThuocH.huyen_id', null, null, array('id'=>'huyens'), false);
		echo "<tr><th><b>Không có đơn vị trực thuộc</b></th></tr>";
	//	echo $form->input('ThuocH.huyen_id',array('label'=>false,'multiple'=>'checkbox',null));
	}
 echo '</table>';

?>